import React from 'react'
export default function About(props){
    console.log(props)
    let val='我是函数式组件'
    return <div className='box' style={{color:'blue',fontSize:'20px'}}>
       <h1>组件-------01</h1>
       组件的值：{val}  <br />
       传递的props:{props.title}  <br />
       插槽组：
       {React.Children.map(props.children,(item,index)=>{
           return <div> {item}</div>
       })}
    </div>
}